package regexExercise;

public class split {
    public static void main(String[] args) {
        String str = "www.baidu.com";
        String[] strs = str.split("\\.");
        for (int i = 0; i < strs.length; i++) {
            System.out.println(strs[i]);
        }

        String str1 = "sdsadas14d5a4s5d4sa5d1asd1";
        String[] strings = str1.split("[0-9]");
        for (int i = 0; i < strings.length; i++) {
            System.out.println(strings[i]);
        }
    }
}
